package compilador.semantico.comando;

import compilador.Command;
import compilador.CommandException;
import compilador.semantico.SemanticException;
import compilador.semantico.TabelaSemantica;

public class VerTipoCommand implements Command {

	@Override
	public void run(String... args) throws CommandException {
		String className = args[0];
		TabelaSemantica tabela = TabelaSemantica.getInstance();
		if ( !tabela.containsTipo(className)) {
			throw new SemanticException("Tipo " + className + " nao declarado!");
		}
	}

}
